package com.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.List;

@Data
public class PatientBank {

            @ApiModelProperty(name = "bankId",notes = "患者Id",dataType = "Long",required = false)
  private Long bankId;
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Timestamp updateTime;
            @ApiModelProperty(name = "bankName",notes = "患者姓名",dataType = "String",required = true)
  private String bankName;
            @ApiModelProperty(name = "sex",notes = "患者性别",dataType = "String",required = true)
  private String sex;;
  private Integer age;
            @ApiModelProperty(name = "phone",notes = "电话",dataType = "String",required = true)
  private String phone;
  private String idNumber;
            @ApiModelProperty(name = "rightVision",notes = "住址",dataType = "String",required = false)
  private String address;
            @JsonFormat(pattern = "yyyy-MM-dd")
            @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp birthday;
  private Integer personalBankId;
            @ApiModelProperty(name = "allergicHistory",notes = "过敏史",dataType = "String",required = false)
  private String allergicHistory;
  private Patient patient;//患者详情表
  private List<PatientRecords> recordsList;//对应多个历史病历















}
